package com.hnzq.cloud.freshuserassembly.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.hnzq.cloud.dto.PageRolesDto;
import com.hnzq.cloud.dto.RoleDto;
import com.hnzq.cloud.freshuserassembly.domain.FreRole;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hnzq.cloud.param.AddRoleParam;
import com.hnzq.cloud.param.DeleteRoleParam;
import com.hnzq.cloud.param.FindRolesParam;
import com.hnzq.cloud.param.UpdateRoleParam;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 周皓月
 * @since 2022-02-03
 */
public interface IFreRoleService extends IService<FreRole> {

    //TODO 分页条件查询角色列表
    PageRolesDto findRolesByCondition(FindRolesParam findRolesParam);

    //TODO 新增角色
    RoleDto addRole(AddRoleParam addRoleParam) ;

    //TODO 更新角色
    RoleDto updateRoleById(UpdateRoleParam updateRoleParam) throws JsonProcessingException;

    //TODO 删除角色
    Boolean deleteRoleById(DeleteRoleParam deleteRoleParam) throws JsonProcessingException;

}
